var app = getApp()
Page({
  data: {
    userInfo: {},
    truename: "",
    driverService: {
      reject: "0%",
      ontime: "100%",
      complaint: "0%",
      service: "10"
    }
  },
  onShareAppMessage: function () {
    return {
      title: app.appName,
      path: '/pages/index/index'
    }
  },
  onLoad: function (e) {
    wx.setNavigationBarTitle({ "title": app.appName +"--车主业务端" });
    var that = this;
    app.getUserInfo(function (logininfo) {
      //更新数据
      that.setData({
        userInfo: app.globalData.userInfo,
        truename: app.globalData.truename
      });
    })
  },
  gotoHome: function () {
    wx.redirectTo({
      url: '/pages/vehicle/vehicle'
    })
  },
  gotoIncome: function () {
    wx.redirectTo({
      url: '/pages/vehicle/income'
    })
  }
})
